package org.mics.email.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "spring.mail.verification-code")
public class EmailProperties {
    /**
     * 验证码长度
     */
    private Integer codeLength;
    /**
     * 验证码有效期
     */
    private Integer validDuration;
    
    /**
     * 同一邮箱申请验证码最小时间间隔 
     */
    private Integer minDuration;
    /**
     * 同一邮箱每天最大申请验证码数量
     */
    private Integer maxCountPerEmail;

    
}
